const Router = require("koa-router");

const router = new Router({
  prefix: "/api",
});

router.get("/getCate", (ctx) => {
  console.log(ctx.header.user);
  ctx.body = {
    msg: "get success",
  };
});

router.post("/addCate", (ctx) => {
  console.log(ctx.state.user);

  ctx.body = {
    msg: "post success",
  };
});

module.exports = router;
